/**
 * 货主的相关接口
 */
import request from '@/common/js/api.js'
import DonMessage from '@/common/js/formMessage' // 引入消息拦截

const myMessage = new DonMessage()





// 考核方案(创建)
export const reqCreate = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/option/create',
    method: 'post',
    data
  })
}


// 考核方案(删除)
export const reqDelete = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/option/delete?code='+data,
    method: 'post',
  })
}


// 考核方案(分页)
export const reqPage = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/option/page',
    method: 'post',
    data
  })
}


// 考核方案(详情)
export const reqDetail = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/option/detail?code='+data,
    method: 'post',
  })
}



// 考核方案(提交发起审批)
export const reqInitiateApproval = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/option/ding?code='+data,
    method: 'post',
  })
}

// 考核方案(提交发起审批 单人)
export const reqInitiateApprovalSingle = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/option/oneself/ding?code='+data,
    method: 'post',
  })
}


// 考核人(实时更新状态)
export const reqApprovalStuatusUpdate = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/option/oneself/real/update?code='+data,
    method: 'post',
  })
}

